<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes() ?>>
<head profile="http://gmpg.org/xfn/11">
<?php include('includes/seo.php'); ?>
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
<meta name="generator" content="WordPress <?php bloginfo('version'); ?>" />
<!-- leave this for stats please -->
<link rel="shortcut icon" href="<?php bloginfo('template_directory'); ?>/img/favico.ico" />
<link rel="stylesheet" type="text/css" href="<?php bloginfo('template_url'); ?>/style.css" />
<?php wp_deregister_script("jquery");?>
<?php wp_head(); ?>	
</head>
<body>
	<div class="container">
		<div class="top">
			<h1>
				<a title="<?php bloginfo('name'); ?>小说"
					href="<?php bloginfo(url);?>"><?php bloginfo('name'); ?></a>   &nbsp;&nbsp;&nbsp;&nbsp; <font color="red">天才瞬间记住本站网址: </font><font color="red"><strong><?php bloginfo('name'); ?> </strong></font><font color="#F90"><strong><?php bloginfo(url);?></strong></font>
			</h1>
			<ul>
				<li>
					<a class="jiathis_button_tsina"></a>
				</li>
				<li>
					<a class="jiathis_button_tqq"></a>
				</li>
				<li>
					<a class="jiathis_button_qzone"></a>
				</li>
				<li>
					<a class="home" title="返回首页" href="<?php bloginfo(url);?>"></a>
				</li>
			</ul>
		</div>
		<!--<div class="search">
			<form id="searchform" method="get" action="<?php bloginfo(url);?>">
				<input id="searchsubmit" type="image"
					src="<?php bloginfo('template_directory'); ?>/images/search_btn.gif" />
				<input name="s" id="s" type="text"
					onfocus="if(value=='输入关键词，搜索全文'){value=''}"
					onblur="if(value==''){value='输入关键词，搜索全文'}" value="输入关键词，搜索全文" />
			</form>
		</div>-->

		
		<ul id="menu-tab" class="nav clearfix">
		    <?php wp_nav_menu( array( 'menu' => 'xiaoshuo_class', 'depth' => 1) );?>
		</ul>

			
<?php if(!is_single()){ ?>
<div id="banner">
			<div class="banner clearfix">
				<img alt="<?php bloginfo('name');?>"
					src="<?php bloginfo('template_directory'); ?>/fengtian.jpg" />
				<div class="content">
					<h2><?php bloginfo('name');?></h2>
					<p><?php echo stripslashes(get_option('xs_author')); ?></p>
					<div><?php echo stripslashes(get_option('xs_novelinfo')); ?></div>
				</div>
			</div>
		</div>


		<div class="section">
			<h3 class="title">
				<div>
					<span><?php bloginfo('name'); ?>最新章节</span>
				</div>
			</h3>
			<ul class="list clearfix" id="new">
<?php
	$args = array (
			'numberposts' => 12 
	);
	$recent_posts = wp_get_recent_posts ( $args );
	foreach ( $recent_posts as $recent ) {
		echo '<li><a href="' . get_permalink ( $recent ["ID"] ) . '" title="<h3>' . esc_attr ( $recent ["post_title"] ) . '</h3>　　' . utf8Substr ( strip_tags ( $recent ["post_content"] ), 0, 220 ) . '...">' . trim ( $recent ["post_title"] ) . '</a></li>';
	}
?>
			</ul>
		</div>

<?php } ?>
<?php if ($wp_query->current_post == 0) : ?>
<?php if (get_option('xs_adt') == 'Hide') { ?>
<?php { echo ''; } ?>
<?php } else { include(TEMPLATEPATH . '/includes/ad_t.php'); } ?>
<?php endif; ?>		
